package com.qf.remote.feign;

import com.qf.entity.base.R;
import com.qf.entity.vo.CartInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程调用购物车服务的Feign接口
 */
@FeignClient("cart-server")
public interface CartServerRemote {

    @PostMapping("/cart/queryCartsInfoByCids")
    R<List<CartInfoVo>> queryCartsInfoByCids(@RequestBody List<Integer> cids);
}
